package com.heima.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.common.dtos.PageResponseResult;
import com.heima.common.dtos.ResponseResult;
import com.heima.model.article.dtos.ArticleBehaviorDto;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.dtos.ArticleVisitStreamMsg;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.wemedia.dtos.WmCommentApplyDto;
import com.heima.model.wemedia.dtos.WmCommentDto;

import java.util.List;
import java.util.Map;

public interface ApArticleService extends IService<ApArticle> {
    ResponseResult<List<ApArticle>> loadArticles(ArticleHomeDto dto, int i);

    Long saveOrUpdateApArticle(ArticleDto dto);

    ResponseResult<List<ApArticle>> loadArticle2(ArticleHomeDto dto, int i);

    Map<String,Integer> getByUserId(ArticleBehaviorDto articleBehaviorDto);

    PageResponseResult findArticleByUserIdAndTime(ArticleBehaviorDto dto);
    /**
     * 根据用户ID 查询文章
     */
    List<ApArticle> findArticleByUserId(Long uid);

    /**
     * 根据分页对象查询文章
     * @param dto
     * @return
     */
    PageResponseResult findArticlePage(WmCommentApplyDto dto);
}
